home *** CD-ROM | disk | FTP | other *** search
- global colorauthoringpath
- global movefileone
- global MoveFileTwo
- global MovePathTwo
- global FileTwoInfo
- global importfilew
- put empty into importfilew
- put MovePathTwo into process
- put FullResList("T=ALL", "O=TNIS", "W=" & MovePathTwo) into resdata
- if resdata is "Error : This file has no resource fork" then
- answer "You will be adding resources to a file without a resource fork." &&¬
- "This isn't a problem as long as you know what you want." with "Cancel" or "Okay"
- if it is "Okay" then put "Empty" & return & " " into resdata
- if it is "Cancel" then do restext("TEXT", "Exit", colorauthoringpath)
- end if
- put the last char of process into holdfilename
- delete last char of process
- repeat until it is ":"
- get the last char of process
- if it is not ":" then put it before char 1 of holdFileName
- delete the last char of process -- this could be shorter with
- end repeat -- changing itemDelimiter to ":", but would require HC 2.1
- put holdFileName into MoveFileTwo
- if MoveFileTwo is "ResGenie‚Ñ¢" then
- showdialog 1, "503","Please use Resedit to edit these files. Sorry, but it's for your own good!" ,"True"
- if there is a window Movefileone then close window movefileone
- if there is a window movefiletwo then close window movefiletwo
- do restext ("TEXT", "Exit", colorauthoringpath)
- end if
- put resdata into FileTwoInfo
- do sort FileTwoInfo
- if the number of lines of FileTwoInfo is 1 then put return & " " after line 1 of FileTwoInfo
- do Listoid MoveFileTwo, FileTwoInfo, "one","Move it :","blue,white", "Chicago", "12", "0", "260,10"